<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head profile="http://selenium-ide.openqa.org/profiles/test-case">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="selenium.base" href="http://mamsy.ru/" />
<title>New Test</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">New Test</td></tr>
</thead><tbody>
<tr>
	<td>open</td>
	<td>http://beta.mamsy.ru/call</td>
	<td></td>
</tr>
<tr>
	<td>storeEval</td>
	<td>if (selenium.isTextPresent('Notice')==false &amp;&amp;&nbsp;&nbsp;selenium.isTextPresent('Error')==false &amp;&amp;&nbsp;&nbsp;selenium.isTextPresent('Exception')==false&nbsp;&nbsp;&amp;&amp;&nbsp;&nbsp;selenium.isTextPresent('vps_core')==false) {} else {alert('Error!')}</td>
	<td></td>
</tr>
<tr>
	<td>waitForTextPresent</td>
	<td>Установить значения по умолчанию</td>
	<td></td>
</tr>
<tr>
	<td>waitForTextPresent</td>
	<td>Заказы за определенную дату/акцию</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>css=#date-link &gt; strong</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>css=button.kd-button.kd-button-submit</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>css=strong</td>
	<td></td>
</tr>
<tr>
	<td>storeEval</td>
	<td>if (selenium.isTextPresent('Notice')==false &amp;&amp;&nbsp;&nbsp;selenium.isTextPresent('Error')==false &amp;&amp;&nbsp;&nbsp;selenium.isTextPresent('Exception')==false&nbsp;&nbsp;&amp;&amp;&nbsp;&nbsp;selenium.isTextPresent('vps_core')==false) {} else {alert('Error!')}</td>
	<td></td>
</tr>
<!--Заказы за определенную дату/акцию-->
<tr>
	<td>click</td>
	<td>css=#date-link &gt; strong</td>
	<td></td>
</tr>
<tr>
	<td>storeEval</td>
	<td>if (selenium.isTextPresent('Notice')==false &amp;&amp;&nbsp;&nbsp;selenium.isTextPresent('Error')==false &amp;&amp;&nbsp;&nbsp;selenium.isTextPresent('Exception')==false&nbsp;&nbsp;&amp;&amp;&nbsp;&nbsp;selenium.isTextPresent('vps_core')==false) {} else {alert('Error!')}</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>css=#filter-date-orders &gt; button.kd-button.kd-button-submit</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>id=order-status-id</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>name=filter[shippingClass]</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>id=date-all-link</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>css=div.ui-datepicker-title</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>css=#date-link &gt; strong</td>
	<td></td>
</tr>
<tr>
	<td>storeEval</td>
	<td>if (selenium.isTextPresent('Notice')==false &amp;&amp;&nbsp;&nbsp;selenium.isTextPresent('Error')==false &amp;&amp;&nbsp;&nbsp;selenium.isTextPresent('Exception')==false&nbsp;&nbsp;&amp;&amp;&nbsp;&nbsp;selenium.isTextPresent('vps_core')==false) {} else {alert('Error!')}</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>//div[@id='filters-containers']/div[2]/a/strong</td>
	<td></td>
</tr>
<tr>
	<td>storeEval</td>
	<td>if (selenium.isTextPresent('Notice')==false &amp;&amp;&nbsp;&nbsp;selenium.isTextPresent('Error')==false &amp;&amp;&nbsp;&nbsp;selenium.isTextPresent('Exception')==false&nbsp;&nbsp;&amp;&amp;&nbsp;&nbsp;selenium.isTextPresent('vps_core')==false) {} else {alert('Error!')}</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>id=filter-customer-id</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>id=filter-customer-name</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>id=filter-customer-phone</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>id=filter-customer-status</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>name=customer_filter[order_status]</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>css=#filter-customers &gt; button.kd-button.kd-button-submit</td>
	<td></td>
</tr>
<tr>
	<td>storeEval</td>
	<td>if (selenium.isTextPresent('Notice')==false &amp;&amp;&nbsp;&nbsp;selenium.isTextPresent('Error')==false &amp;&amp;&nbsp;&nbsp;selenium.isTextPresent('Exception')==false&nbsp;&nbsp;&amp;&amp;&nbsp;&nbsp;selenium.isTextPresent('vps_core')==false) {} else {alert('Error!')}</td>
	<td></td>
</tr>
<!--Идем в заказ. Проверяем наличие заказов.-->
<tr>
	<td>storeEval</td>
	<td>if (selenium.isElementPresent(&quot;//td[@id='orderId']/nobr/a&quot;)==true){nextMove=&quot;order_present&quot;} else {nextMove=&quot;order_no_present&quot;}</td>
	<td>openPage</td>
</tr>
<tr>
	<td>gotolabel</td>
	<td>${openPage}</td>
	<td></td>
</tr>
<tr>
	<td>label</td>
	<td>order_present</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>//td[@id='orderId']/nobr/a</td>
	<td></td>
</tr>
<tr>
	<td>storeEval</td>
	<td>if (selenium.isTextPresent('Notice')==false &amp;&amp;&nbsp;&nbsp;selenium.isTextPresent('Error')==false &amp;&amp;&nbsp;&nbsp;selenium.isTextPresent('Exception')==false&nbsp;&nbsp;&amp;&amp;&nbsp;&nbsp;selenium.isTextPresent('vps_core')==false) {} else {alert('Error!')}</td>
	<td></td>
</tr>
<tr>
	<td>waitForTextPresent</td>
	<td>Не можем дозвониться</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>link=Редактировать пользователя</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>css=td &gt; div &gt; strong</td>
	<td></td>
</tr>
<tr>
	<td>waitForTextPresent</td>
	<td>Редактировать пользователя</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>link=Редактировать пользователя</td>
	<td></td>
</tr>
<tr>
	<td>storeEval</td>
	<td>if (selenium.isTextPresent('Notice')==false &amp;&amp;&nbsp;&nbsp;selenium.isTextPresent('Error')==false &amp;&amp;&nbsp;&nbsp;selenium.isTextPresent('Exception')==false&nbsp;&nbsp;&amp;&amp;&nbsp;&nbsp;selenium.isTextPresent('vps_core')==false) {} else {alert('Error!')}</td>
	<td></td>
</tr>
<!--перечетать заказа-->
<tr>
	<td>storeEval</td>
	<td>if (selenium.isTextPresent('Notice')==false &amp;&amp;&nbsp;&nbsp;selenium.isTextPresent('Error')==false &amp;&amp;&nbsp;&nbsp;selenium.isTextPresent('Exception')==false&nbsp;&nbsp;&amp;&amp;&nbsp;&nbsp;selenium.isTextPresent('vps_core')==false) {} else {alert('Error!')}</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>link=Добавить товар</td>
	<td></td>
</tr>
<tr>
	<td>select</td>
	<td>id=orderStatus</td>
	<td>label=Выполняется</td>
</tr>
<tr>
	<td>type</td>
	<td>css=#changeStatusForm &gt; textarea[name=&quot;comments&quot;]</td>
	<td>tt</td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>css=#changeStatusForm &gt; button.kd-button.kd-button-submit</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>css=#changeStatusForm &gt; button.kd-button.kd-button-submit</td>
	<td></td>
</tr>
<tr>
	<td>storeEval</td>
	<td>if (selenium.isTextPresent('Notice')==false &amp;&amp;&nbsp;&nbsp;selenium.isTextPresent('Error')==false &amp;&amp;&nbsp;&nbsp;selenium.isTextPresent('Exception')==false&nbsp;&nbsp;&amp;&amp;&nbsp;&nbsp;selenium.isTextPresent('vps_core')==false) {} else {alert('Error!')}</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>link=Клиент</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>link=История заказов</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>link=Способ доставки</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>link=Клиент</td>
	<td></td>
</tr>
<tr>
	<td>storeEval</td>
	<td>if (selenium.isTextPresent('Notice')==false &amp;&amp;&nbsp;&nbsp;selenium.isTextPresent('Error')==false &amp;&amp;&nbsp;&nbsp;selenium.isTextPresent('Exception')==false&nbsp;&nbsp;&amp;&amp;&nbsp;&nbsp;selenium.isTextPresent('vps_core')==false) {} else {alert('Error!')}</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>id=customer-comment</td>
	<td></td>
</tr>
<tr>
	<td>waitForTextPresent</td>
	<td>Добавить комментарий</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>id=customer-comment</td>
	<td>tt</td>
</tr>
<tr>
	<td>click</td>
	<td>css=#customer_status &gt; form &gt; button.kd-button.kd-button-submit</td>
	<td></td>
</tr>
<tr>
	<td>storeEval</td>
	<td>if (selenium.isTextPresent('Notice')==false &amp;&amp;&nbsp;&nbsp;selenium.isTextPresent('Error')==false &amp;&amp;&nbsp;&nbsp;selenium.isTextPresent('Exception')==false&nbsp;&nbsp;&amp;&amp;&nbsp;&nbsp;selenium.isTextPresent('vps_core')==false) {} else {alert('Error!')}</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>link=История заказов</td>
	<td></td>
</tr>
<tr>
	<td>storeEval</td>
	<td>if (selenium.isTextPresent('Notice')==false &amp;&amp;&nbsp;&nbsp;selenium.isTextPresent('Error')==false &amp;&amp;&nbsp;&nbsp;selenium.isTextPresent('Exception')==false&nbsp;&nbsp;&amp;&amp;&nbsp;&nbsp;selenium.isTextPresent('vps_core')==false) {} else {alert('Error!')}</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>link=Способ доставки</td>
	<td></td>
</tr>
<tr>
	<td>storeEval</td>
	<td>if (selenium.isTextPresent('Notice')==false &amp;&amp;&nbsp;&nbsp;selenium.isTextPresent('Error')==false &amp;&amp;&nbsp;&nbsp;selenium.isTextPresent('Exception')==false&nbsp;&nbsp;&amp;&amp;&nbsp;&nbsp;selenium.isTextPresent('vps_core')==false) {} else {alert('Error!')}</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>xpath=(//button[@type='submit'])[11]</td>
	<td></td>
</tr>
